to Dynamic Diagonal Dp
EN Converts a Number (base Dp value) into a dynamically scaled Dp Float for View-based (non-Compose) code.
Unlike toDynamicDiagonalPx, the result is returned in Dp units — no density conversion is applied. This is useful for APIs that accept logical Dp values directly (e.g. View.setPadding with a custom Dp-aware layout engine).
Same caching, validation, and bypass semantics as toDynamicDiagonalPx.
PT Converte um Number (valor Dp base) em um Float em Dp dinamicamente escalado para código View-based.
Ao contrário de toDynamicDiagonalPx, o resultado é retornado em unidades Dp — sem conversão de densidade. Útil para APIs que aceitam valores Dp lógicos diretamente.
Mesma semântica de cache, validação e bypass de toDynamicDiagonalPx.
Return
Dynamically scaled Dp value as Float.
Parameters
Android android.content.Context for configuration access.
Screen dimension qualifier.
Orientation-based dimension swap rule (default: Inverter.DEFAULT).
If true, returns the base Dp value unscaled when in split-screen.
If true, applies the aspect-ratio multiplier.
Override for the AR sensitivity constant (null = library default).